#include <iostream>
using namespace std;

int main()
{
    int n;
    cin>>n;
    for (int i=0;i<n;i++)
    {
        int height,weight;
        cin>>height>>weight;
        double bz=(height-100)*0.9*2;
        if ((weight-bz)>=bz*0.1)
            cout<<"You are tai pang le!"<<endl;
        else if ((weight-bz)<=-bz*0.1)
            cout<<"You are tai shou le!"<<endl;
        else
            cout<<"You are wan mei!"<<endl;
    }
}